home *** CD-ROM | disk | FTP | other *** search
- head 1.3;
- access ;
- symbols ;
- locks ; strict;
- comment @ * @;
-
-
- 1.3
- date 88.09.15.10.17.35; author douglis; state Exp;
- branches ;
- next 1.2;
-
- 1.2
- date 88.09.13.16.44.56; author douglis; state Exp;
- branches ;
- next 1.1;
-
- 1.1
- date 88.08.14.15.12.58; author douglis; state Exp;
- branches ;
- next ;
-
-
- desc
- @internal declarations for the ulog routines.
- @
-
-
- 1.3
- log
- @removed ULOG_FILE_NAME and LASTLOG_FILE_NAME definitions (moved to ulog.h
- so programs can access them directly if need be.)
- @
- text
- @/*
- * ulogInt.h --
- *
- * Declarations of constants and variables shared by the ulog
- * routines.
- *
- * Copyright 1988 Regents of the University of California
- * Permission to use, copy, modify, and distribute this
- * software and its documentation for any purpose and without
- * fee is hereby granted, provided that the above copyright
- * notice appear in all copies. The University of California
- * makes no representations about the suitability of this
- * software for any purpose. It is provided "as is" without
- * express or implied warranty.
- *
- * $ulogInt: proto.h,v 1.2 88/03/11 08:39:40 ouster Exp $ SPRITE (Berkeley)
- */
-
- #ifndef _ULOGINT
- #define _ULOGINT
-
- #include <stdio.h>
- #include <syslog.h>
- #include <sys/file.h>
- #include <sys/errno.h>
- #include <string.h>
- #include <sys/time.h>
- #include <db.h>
- #include <host.h>
-
-
- /*
- * DEBUG_ULOG controls printing error messages when returning failure
- * conditions.
- */
-
- #define DEBUG_ULOG
-
- /*
- * Define the length of a record in the database. Records are fixed-length
- * strings, padded by null characters if necessary. Each integer in the
- * string is of length MAX_INT_STR_LEN or less (10 digits, plus a sign,
- * plus a byte for the intervening space).
- */
-
- #define MAX_INT_STR_LEN 12
- #define ULOG_RECORD_LENGTH ((4 * MAX_INT_STR_LEN) + ULOG_LOC_LENGTH)
- #define ULOG_FORMAT_STRING "%d %d %d %d %s"
- #define ULOG_ITEM_COUNT 5
-
- extern int Ulog_WriteLogEntry();
-
- extern int errno;
-
- #endif _ULOGINT
- @
-
-
- 1.2
- log
- @changed to use ascii representation in database file.
- @
- text
- @a38 3
- #define ULOG_FILE_NAME "/sprite/admin/data.new/userLog"
- #define LASTLOG_FILE_NAME "/sprite/admin/data.new/lastLog"
-
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @d39 14
- a52 2
- #define ULOG_FILE_NAME "/sprite/admin/data/userLog"
- #define LASTLOG_FILE_NAME "/sprite/admin/data/lastLog"
- @
-